package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ReturngoodsMapper {
    //查询当前登录人下的客户
    public List<Customer> selectcunstomer(Integer yid);
    //根据客户id查询此客户下所有订单
    public List<Order> selectorder(Integer oid);
    //根据订单id查询订单详情
    public List<OrderDetails> selectodte(Integer odet);
    //修改订单退换否
    public void updateoder(Integer oid);
    public void updateoder2(Integer oid);
    //查询当前登录人下所有的退货记录
    public List<ReturnGoods> selectruet(Integer rid);
    //退货多条件查询
    public List<ReturnGoods> selectwhere(@Param("rid") Integer rid,@Param("where") String where);
    //根据时间查询
    public List<ReturnGoods> selecttime(@Param("rid") Integer rid,@Param("statr") String statr,@Param("endtime") String endtime);
    //修改换货
    public void updatchage(ExchangeGoods exchangeGoods);
    //查详表
    public List<ReturnDetails> selectdtat(Integer rid);
    public List<ReturnGoods> selecttuia(Integer rid);
    public List<ReturnGoods> selectret();
}
